<template>
  <div>
    <h2>{{category}}</h2>
  </div>
</template>

<script>
  import axios from 'axios'

  export default {
    name: "HelloWorld",
    data() {
      return {
        category: ''
      }
    },
    created() {
      axios({
        url: 'http://123.207.32.32:8000/api/hy/category'
      }).then(res => {
        // console.log(res);
        this.category = res
      })
    }
  }
</script>

<style scoped>

</style>
